package sim1011.behaviours;

import sim1011.poltergeist.Poltergeist;
import sim1011.starter.Logger;
import jade.core.Agent;
import jade.core.behaviours.TickerBehaviour;

public class MobileNodeMoverBehaviour extends TickerBehaviour implements
		java.io.Serializable {
	private static final long serialVersionUID = -276355286948751806L;

	public MobileNodeMoverBehaviour(Agent a, long period) {
		super(a, period);
	}

	@Override
	protected void onTick() {
		Logger.log("[MOBILENODEMOVER] sposto il nodo mobile");
		((Poltergeist) myAgent).roam();
	}
}